﻿using System.Windows;

namespace Niaofei.WPF.Control
{
    public class Label : System.Windows.Controls.Label
    {
        static Label()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(Label), new FrameworkPropertyMetadata(typeof(Label)));
        }

        public bool IsRequired
        {
            get { return (bool)GetValue(IsRequiredProperty); }
            set { SetValue(IsRequiredProperty, value); }
        }

        public static readonly DependencyProperty IsRequiredProperty =
            DependencyProperty.Register("IsRequired", typeof(bool), typeof(Label), new PropertyMetadata(false));
    }
}
